<?php
/**
 * Controller is the customized base controller class.
 * All controller classes for this application should extend from this base class.
 */
class YiiAmfServer
{
	public function getMydata()
	{
		$tm = new testModel;
		return $tm;
	}
	
	public function sayHello($testModel)
	{
		return '欢迎'.$testModel->username.',现在是: '.date('Y-m-d H:i:s',time());
	}
	
}

class TestModel
{
	public $username='athlan';
	public $sex='男';
}